package ch.fhnw.qualiscan;

import java.io.Serializable;

import ch.fhnw.qualiscan.application.layout.BaseLayout;
import ch.fhnw.qualiscan.core.Page;
import ch.fhnw.qualiscan.core.libraries.LanguageLib;
import ch.fhnw.qualiscan.core.libraries.UrlLib;

import com.vaadin.ui.Window;
/**
 * This class is used to store application wide data. It is being attached to the main window.
 * @author Kevin Mettenberger
 *
 */
public class AppObject implements Serializable {

	private BaseLayout baseLayout;
	private Page currentPage;
	private Window currentModal;
	private UrlLib urlLib;
	private LanguageLib languageLib;

	public BaseLayout getBaseLayout() {
		return baseLayout;
	}

	public void setBaseLayout(BaseLayout baseLayout) {
		this.baseLayout = baseLayout;
	}

	public Page getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Page currentPage) {
		this.currentPage = currentPage;
	}

	public UrlLib getUrlLib() {
		return urlLib;
	}

	public void setUrlLib(UrlLib urlLib) {
		this.urlLib = urlLib;
	}

	public LanguageLib getLanguageLib() {
		return languageLib;
	}

	public void setLanguageLib(LanguageLib languageLib) {
		this.languageLib = languageLib;
	}

	public Window getCurrentModal() {
		return currentModal;
	}

	public void setCurrentModal(Window currentModal) {
		this.currentModal = currentModal;
	}
	
	
	
}
